﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace chihuopig.Web.verfiy
{
    public class ChenckPhoneAttribute: ValidationAttribute
    {

        public override bool IsValid(object value)
        {
            if (value.ToString()!="123")
            {
                return false;
            }

            return true;
        }
    }
}
